home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 50
/
Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso
/
Aminet
/
util
/
rexx
/
Pixload-1.74.lha
/
Pixload-1.74
/
Pixload
< prev
next >
Wrap
Text File
|
2002-06-15
|
3KB
|
128 lines
/**/
call init
call CreateApp(f)
call HandleApp
/*never reached */
/**********************************************************************/
init: procedure expose global.
l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
if AddLibrary("rxmui.library")~=0 then exit
call rxmuiopt("debugmode showerr")
return
/***********************************************************************/
HandleApp: procedure expose prog.
ctrl_c=2**12
do forever
call NewHandle("app","h",ctrl_c)
if and(h.signals,ctrl_c)>0 then exit
select
when h.event="QUIT" then exit
otherwise interpret h.event
end
end
/* never reached */
/***********************************************************************/
CreateApp: procedure expose prog.
open(chemin,"Pixload:Prefs/Pixload.prefs",'Read')
num=0
icones=readln(chemin)
icones=icones-1
large=readln(chemin)
do while ~EOF(chemin)
script=readln(chemin)
fichier=readln(chemin)
if fichier~="" then do
if script~==1 then prog.num="address command 'wbrun "||fichier||"'"
else prog.num="address command 'execute "||fichier||"'"
end
bull=readln(chemin)
if bull~="" then bulle.num=bull
else bulle.num="???"
num=num+1
end
call close(chemin)
app.Title="Pixload"
app.Version="$VER: Pixload version 1.74"
app.Author="Pixel Art - www.Pixel-Art.fr.st"
app.Description="Programs loading bar"
app.SubWindow="win"
app.Base="Pixload"
win.Class="BWin"
win.nosize=1
win.ID="MAIN"
win.Contents="mgroup"
mgroup.0="speedbar"
speedbar.class="speedbar"
speedbar.horiz=large
speedbar.RaisingFrame=1
speedbar.Borderless=1
speedbar.viewmode="GFX"
speedbar.imagesdrawer="Pixload:icones"
speedbar.sunny=1
do i=0 to icones
speedbar.i.Img=i
speedbar.i.Help=bulle.i
end
if NewObj("application","app")>0 then exit
do i=0 to icones
call sbNotify("speedbar",i,"pressed",1,"app","Return","call dofun("i")")
end
call domethod("win","adduseritem","Pixload's Prefs",1)
call notify("win","useritem",1,"app","return","call prefs")
call Notify("win","CloseRequest",1,"APP","ReturnID","quit")
call set("win","open",1)
return
/* --------------------------------------------*/
prefs: procedure
cmd="address command 'wbrun sys:prefs/pixload-prefs'"
interpret cmd
return
/* ------------------------- */
dofun: procedure expose prog.
parse arg a
cmd=prog.a
interpret cmd
return
/* ---*/
halt:
break=_c:
exit